package com.seari.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IndexController extends BaseController {
	
	/**
	 * 网站首页
	 * 
	 * @return
	 */
	@RequestMapping(value = "/")
	public ModelAndView gotoIndex() {
		ModelAndView view = this.getModelAndView();
		view.setViewName("index");
		return view;
	}
	
	/**
	 * 人员疫情
	 * 
	 * @return
	 */
	@RequestMapping(value = "/metro")
	public ModelAndView metro() {
		ModelAndView view = this.getModelAndView();
		view.setViewName("metro");
	
		return view;
	}
	
	/**
	 * 建设人员
	 * @return
	 */
	@RequestMapping(value = "/construction")
	public ModelAndView construction() {
		ModelAndView view = this.getModelAndView();
		view.setViewName("construction");
		
		return view;
	}
	
	/**
	 * 物资
	 * @return
	 */
	@RequestMapping(value = "/material")
	public ModelAndView material() {
		ModelAndView view = this.getModelAndView();
		view.setViewName("material");
		
		return view;
	}
	
	@RequestMapping(value = "/index")
	public ModelAndView gotoIndexPC() {
		ModelAndView view = this.getModelAndView();
		view.setViewName("metro_pc");
		return view;
	}
	
	@RequestMapping(value = "/constructionPC")
	public ModelAndView constructionPC() {
		ModelAndView view = this.getModelAndView();
		view.setViewName("construction_pc");
		return view;
	}
	
	@RequestMapping(value = "/materialPC")
	public ModelAndView materialPC() {
		ModelAndView view = this.getModelAndView();
		view.setViewName("material_pc");
		return view;
	}
	
	@RequestMapping(value = "/operate")
	public ModelAndView operate() {
		ModelAndView view = this.getModelAndView();
		view.setViewName("operate");
		return view;
	}
	
	@RequestMapping(value = "/operatePC")
	public ModelAndView operatePC() {
		ModelAndView view = this.getModelAndView();
		view.setViewName("operate_pc");
		return view;
	}
}
